<html><head><title>api.system.Boot</title><link rel="stylesheet" type="text/css" href="../../styles/main.css"><link rel="stylesheet" type="text/css" href="../../styles/prettify.css"><script language=JavaScript src="../../javascript/prettify.js"></script><script language=JavaScript src="../../javascript/main.js"></script></head><body class="FramedContentPage" onLoad="{NDOnLoad();prettyPrint();}"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.4 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="api.system.Boot"></a>api.<wbr>system.Boot</h1><div class=CBody><p>Main entry point for the flashjs sdk.</p><h4 class=CHeading>usage</h4><ul><li>include the script in the head</li><li>instantiate in the body like</li></ul><blockquote><pre class="prettyprint">var onApplicationLoadComplete = function() {
    // instantiate your application and enter in application mode.
}

var onBootCompleteHandler = function() {
  // do stuff when boot completes, importing your main Application class like
  Class.import('./js/Application.js').onloadComplete = onApplicationLoadComplete;
}

var boot = new api.system.Boot('./flashjs/');
boot.onComplete = onBootCompleteHandler;
boot.init();</pre></blockquote><h4 class=CHeading>bootRoutine</h4><ul><li>loads <a href="utils/Namespace-js.html#api.system.utils.Namespace" class=LClass id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">api.system.utils.Namespace</a> &amp; registers global Namespace object of its instance</li><li>loads <a href="utils/ScriptLoader-js.html#api.system.utils.ScriptLoader" class=LClass id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">api.system.utils.ScriptLoader</a> &amp; registers global ScriptLoader object of its instance</li><li>loads <a href="utils/Class-js.html#api.system.utils.Class" class=LClass id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">api.system.utils.Class</a> &amp; registers global Class object of its instance</li></ul><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#api.system.Boot" >api.<wbr>system.Boot</a></td><td class=SDescription>Main entry point for the flashjs sdk.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#api.system.Boot.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#api.system.Boot.init" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">init</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#api.system.Boot.onComplete" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">onComplete</a></td><td class=SDescription>Callback handler, need to override this if you want to get notified when boot completes</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="api.system.Boot.Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="api.system.Boot.init"></a>init</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>init : function()</td></tr></table></blockquote></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="api.system.Boot.onComplete"></a>onComplete</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>onComplete : function()</td></tr></table></blockquote><p>Callback handler, need to override this if you want to get notified when boot completes</p></div></div></div>

</div><!--Content-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>init : function()</td></tr></table></blockquote></div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>onComplete : function()</td></tr></table></blockquote>Callback handler, need to override this if you want to get notified when boot completes</div></div><div class=CToolTip id="tt3"><div class=CClass>Creates namespace with given value. </div></div><div class=CToolTip id="tt4"><div class=CClass>Utility class reposible for chained loading of external scripts.</div></div><div class=CToolTip id="tt5"><div class=CClass>System Utility implementation of OOP-like design concept and as well main facility for resolving dependencies, loading external classes &amp; resolving extends.</div></div><!--END_ND_TOOLTIPS-->

<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>